import mockRequest from '@/utils/mockRequest'
const state = {
  list: {}
}
const mutations = {
  GETDATA(state, list) {
    state.list = list
  }
}
const actions = {
  async getData({ commit }) {
    console.log('AAAAAAAA');

    let result = await mockRequest.get('/home/list')
    console.log(result);

    if (result.code == 20000) {
      console.log(result.data);

      commit("GETDATA", result.data)
    }
  }

}
const getters = {

}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}